package com.eeepay.eeepay_v2.app;

import com.eeepay.eeepay_v2.model.RecordInfo;

import java.util.Comparator;

/**
 * Created by Ching on 2016/3/2.
 * 时间比较器
 */
public class TimeComparator implements Comparator<RecordInfo> {

    @Override
    public int compare(RecordInfo obj1, RecordInfo obj2) {

        return Double.compare(-obj1.getSaveTime(),-obj2.getSaveTime());
    }
}
